package com.cn.wanxi.thread;

public class TestRunnable {
    public static void main(String[] args) {
// 创建MyRunnable对象
        MyRunnable myRunnable = new MyRunnable();
// 创建线程对象，并将MyRunnable对象传入线程的构造方法里面
        Thread thread = new Thread(myRunnable,"线程三");
// 开启线程（线程就绪状态）
//        thread.setName("线程三");
        thread.start();

    }
}